<?php
namespace app\admin\controller;

use app\BaseController;
use think\facade\Db;

class Index extends Base
{
    public function index()
    {
        return view();
    }

    public function welcome()
    {
        return view('', [
            'count1' => 100,
            'count2' => 100,
            'count3' => 100,
            'count4' => 100,
        ]);
    }

    // tuichu
    public function logout()
    {
        session('adminSessionaData', null);
        return redirect('/admin/login/index');
    }

    public function hello($name = 'ThinkPHP6')
    {
        return 'hello,' . $name;
    }
}
